<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <script type="text/javascript">
  function sub(){
var bcard=document.getElementById("bcard").value;  
if(bcard.trim().length==0){
alert("请填入银行卡号！");
return false;
}else{
return true;
}
  }
  </script>
    <base href="<%=basePath%>">
    
    <title>My JSP 'pay.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <form action="ticketaction!pay.action" method="post" onsubmit="return sub();">
  <table align="center" width="100%" border="1">
	  <tr>
	  <td>
	  全额：
	  </td>
	  <td>
	  <s:property value="#session.tprice"/><input type="hidden" value="<s:property value='#session.tprice'/>" name="price">
	  </td>
	  <tr>
	  <td>付款卡号</td>
	  <td><input type="text" name="bcard" id="bcard"></td>
	  </tr>
	  <tr>
	  <td><input type="submit" value="付款"></td>
	  <td><input type="reset" value="重置"></td>
	  </tr>
  
  </table>
  </form>
  </body>
</html>
